home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / GRFSETUP.DMO < prev    next >
Text File  |  1996-07-04  |  4KB  |  63 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   GRFSETUP.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NBV1.INC"
  22. CLS
  23. SCREEN 12
  24. GraphicSETUP
  25. COLOR 7, 0
  26. CLS
  27. ? "┌────────────────────────────────────────────────────────────────────────
  28. ? "│ Before using any of the routines and functions in the VGA package you
  29. ? "│ need to make a one-time call to GraphicSETUP. This allows a series of
  30. ? "│ internal variables to be set to their defaults for the graphic screen
  31. ? "│ you are using. Most of the .ASM routines work on CGA, HERC, EGA, and
  32. ? "│ in monochrome and color but, be warned, their primary job is VGA color
  33. ? "│ and you may find some anomolies if you can still find CGA, HERC, and/or
  34. ? "│ EGA screens!
  35. ? "│ You need to issue a new call to GraphicSETUP if you change screens also
  36. ? "│ but I don't see a program flipping from CGA to VGA?!
  37. ? "└────────────────────────────────────────────────────────────────────────
  38. ?
  39.                                            '┌───────────────────────────────
  40. PRINT "MAXIMUM COLS:";      fScrnMaxX%     '│ just in case you forget!
  41. PRINT "MAXIMUM ROWS:";      fScrnMaxY%     '│
  42. PRINT                                      '│
  43. PRINT "MINIMUM WNDO COLS:"; fWndoMinX%     '│ window parameters for all the
  44. PRINT "MINIMUM WNDO ROWS:"; fWndoMinY%     '│ drawing routines
  45. PRINT "MAXIMUM WNDO COLS:"; fWndoMaxX%     '│ (We'll get into this later.)
  46. PRINT "MAXIMUM WNDO ROWS:"; fWndoMaxY%     '│
  47. PRINT "MASK ADJUSTMENT:   "; fMASKadjust?  '│
  48. PRINT                                      '│
  49. PRINT "DEFAULT FOREGROUND:"; fForeground?  '│ these are used by the PUT and
  50. PRINT "DEFAULT BACKGROUND:"; fBackground?  '│ GET stuff and we'll get back
  51. PRINT "COLOR FLAG:        "; fCOLORflag?   '│ to all this too.
  52.                                            '└───────────────────────────────
  53. WHILE NOT INSTAT : WEND
  54. SCREEN 0
  55. CLS
  56.  
  57. $if 0                                      '┌───────────────────────────────
  58.   SetForeground (BYVAL Clr?)               '│ set the default foreground
  59.   SetBackground (BYVAL Clr?)               '│ set the default background
  60.   GCOLOR        (BYVAL Fore?,BYVAL Back?)  '│ set both ───────┘
  61.   SetCOLORflag  (BYVAL Flag?)              '│ 0 = off   1 = on
  62.   SetMASKadjust (BYVAL Flag?)              '│ 0 = reset 1 = no reset
  63. $endif                                     '└───────────────────────────────